<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>v-for是动态的 一直在监控数据的变化</title>
		<script src="../js/vue.js"></script>
	<style type="text/css">
		#app li{
		font-size:30px;
	}
	</style>
	</head>
	<body>
		<div id="app">
			<ul>
				<!-- <li v-for="count in 5">这是第{{count}}次循环</li> -->
				<li v-for="(cloth,index) in clothes">{{index}}-{{cloth.name}}:${{cloth.price}}</li>		
			</ul>
		</div>
		<script type="text/javascript">
			var app=new Vue({
				el:'#app',
				data:{
					clothes:[{
						name:'衬衫',
						price:'180',	
					},
					{
						name:'外套',
						price:'200',	
					},
					{
						name:'裤子',
						price:'380',	
					}
					]
				}
			})
		</script>
	</body>
</html>
